#pragma once
#include <chrono>
#include <execution>
#include <thread>
#include <algorithm>
#include <iostream>
#include "des.h"

int main() {
	//auto threadCount = std::thread::hardware_concurrency();
	char plainText[8] = { 0x02,0x46,0x8a,0xce,0xec,0xa8,0x64,0x20 };
	const char key[8] = { 0xff,0x14,0x71,0x78,0x47,0xd8,0xe8,0x59 };
	char outBuffer[16];
	Des desEnc;
	std::chrono::high_resolution_clock clk;
	auto time = clk.now();
	for (int i = 0; i < 1000; i++) {
		desEnc.Des_Go(outBuffer, plainText, 8, key, 8);
	}
	auto duraction = std::chrono::duration_cast<std::chrono::microseconds> (clk.now() - time);
	std::cout << duraction.count() << "us\n";
}